package com.itheima.reggie.service;

import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.R;
import com.itheima.reggie.entity.dto.OrderDto;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;

public interface OrderService {
    @Transactional
    void submit(Orders order);

    R<Page<OrderDto>> findByPage(Integer page, Integer pageSize, Long userId);

    R<Page<Orders>> findByNumberAndTime(Integer page, Integer pageSize, Long number, String beginTime, String endTime);
}
